package book.ch3.Car;

public class SaloonCar extends Car{
	private double price;
	public SaloonCar(String model){
		super(model);
		this.price=1;
	}
	void printModel(){
		System.out.println("The model of this saloon car is "+super.model);
	}
	void printPrice(){
		System.out.println("This price is "+price+"m dollar");
	}
	public static void main(String[] args) {
		SaloonCar saloonCar=new SaloonCar("saloon car model");
		saloonCar.printModel();
		saloonCar.printPrice();

	}

}
